import { io } from 'socket.io-client'
import { Istate } from "../../interface"
import wssurl from "../../util/wssurl"
const socket = io(wssurl() + '/api/', {
  transports: ["websocket"]
})

const state: Istate = {
  user: undefined,
  users: undefined,
  question: undefined,
  questionbank: undefined,
  activity: undefined,
  article: undefined,
  label: undefined,
  state: {
    difficulty: { '1': '入门', '2': '普及-', '3': '普及/提高-', '4': '普及+/提高', '5': '提高+', '6': '省选', '7': 'NOI/NOI+/CTSC' }
  },
  socket,
  packegekey: undefined,
  specialjudge: undefined
}

export default state
